package com.gzx.plugin.tjzy.modular.sms.receipt.controller;

import com.gzx.plugin.tjzy.modular.sms.receipt.bo.GzxStatisticSmsReceiptBo;
import com.gzx.plugin.tjzy.modular.sms.receipt.service.GzxSmsReceiptStatisticService;
import com.gzx.plugin.tjzy.modular.sms.receipt.vo.GzxSmsReceiptStatisticVo;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.common.pojo.CommonResult;

import java.util.List;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/**
 * @author xbl
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/tjzy/sms/receipt/statistic")
public class GzxSmsReceiptStatisticController {

    private final GzxSmsReceiptStatisticService statisticService;

    @PostMapping("/smsSendRate")
    public CommonResult<Page<GzxSmsReceiptStatisticVo>> smsSendRate(@RequestBody GzxStatisticSmsReceiptBo bo) {
        return CommonResult.data(statisticService.smsSendRate(bo));
    }

}
